/*
 * $Header: $ 
 */
package net.frankish.tools;

import java.awt.Dimension;

import javax.swing.JComponent;
import javax.swing.JFrame;

/**
 * 
 * <p>Title: $RCSfile: GuiTools.java,v $</p>
 * File: GuiTools.java
 * Project: JCharacter
 * @author Frankish
 * @version $Revision:  $
 */
public class GuiTools {

	
	public static JComponent setSizes(JComponent comp, Dimension xy) {
		comp.setMaximumSize(xy);
		comp.setMinimumSize(xy);
		comp.setPreferredSize(xy);
		return comp;
	}
	public static JComponent setSizes(JComponent comp, int x, int y) {
		Dimension xy = new Dimension(x,y);
		comp.setMaximumSize(xy);
		comp.setMinimumSize(xy);
		comp.setPreferredSize(xy);
		return comp;
	}
}
